package com.ruoyi.mx.service;

import com.ruoyi.mx.domain.MxGoodsSpu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;

/**
 * 美秀商品Service接口
 *
 * @author ruoyi
 * @date 2021-10-28
 */
public interface IMxGoodsSpuService extends IService<MxGoodsSpu> {

    ArrayList<MxGoodsSpu> getGoodsListByPidAndId(String pid, String id, Integer pageNum, Integer pageSize);

    Integer countGoodsCollections(String gid, String uid);

    void insertGoodsCollections(String gid, String uid);

    Integer delGoodsCollections(String gid, String uid);

    ArrayList<MxGoodsSpu> getGoodsListByName(String name);

    ArrayList<MxGoodsSpu> getGoodsListByNameOrderAsc(String name);

    ArrayList<MxGoodsSpu> getGoodsListByNameOrderDesc(String name);

    ArrayList<MxGoodsSpu> getGoodsListByNameOrderSaleAsc(String name);

    ArrayList<MxGoodsSpu> getGoodsListByNameOrderSaleDesc(String name);

    ArrayList<MxGoodsSpu> getGoodsListByNameOrderTimeDesc(String name);
}
